var vm=new Vue({
    el:"#about",
    data: {
        temp:"",
        temps:{}

        /*brand_background:"",
        company:"",
        sell_channel:""*/
    },
    mounted(){
        this.About();
    },
    methods: {
        About:function(){
            var that = this;
            axios.get("/about/abouts.do").then(function (response){
                that.temps=response.data;
            })
        },


        //修改
        update:function (){
            let that=this;
            axios.post("/about/update.do",this.temps).then(function (response){
                if (response.data.success){
                    localStorage.removeItem('temps');//清除本地缓存中的Knowledge
                    alert(response.data.message)

                }else {
                    alert(response.data.message)
                }
            })
        },


        brandAbout:function(){
    var that = this;
    axios.get("/about/abouts.do").then(function (response){
        that.temp=response.data.brandBackground;
    })
},

            companyAbout:function(){
                var that = this;
                axios.get("/about/abouts.do").then(function (response){
                    that.temp=response.data.company;

                })
            },

            sellChannelAbout:function(){
                    var that = this;
                    axios.get("/about/abouts.do").then(function (response){
                        that.temp=response.data.sellChannel;

                    })
                }


            }


})